//using UnityEngine;
//using UnityEngine.Purchasing;

//namespace Voodoo.Sauce.Internal.Analytics
//{
//	public class TenjinWrapper
//	{
//		private const string TenjinApiKey = "E3OTCZ3UQ1OUEWUD3W9SO8JT6REPCZ5U";

//		internal static void TrackTenjinCustomEvent(string eventName)
//		{
//			Tenjin.getInstance("E3OTCZ3UQ1OUEWUD3W9SO8JT6REPCZ5U").SendEvent(eventName);
//		}

//		//internal static void TrackTenjinPurchase(Product product)
//		//{
//		//	StoreReceipt storeReceipt = JsonUtility.FromJson<StoreReceipt>(product.receipt);
//		//	string id = product.definition.id;
//		//	string isoCurrencyCode = product.metadata.isoCurrencyCode;
//		//	int quantity = 1;
//		//	float num = (float)product.metadata.localizedPrice;
//		//	string payload = storeReceipt.Payload;
//		//	string transactionID = product.transactionID;
//		//	GooglePayload googlePayload = JsonUtility.FromJson<GooglePayload>(payload);
//		//	Tenjin.getInstance("E3OTCZ3UQ1OUEWUD3W9SO8JT6REPCZ5U").Transaction(id, isoCurrencyCode, quantity, num, null, googlePayload.json, googlePayload.signature);
//		//}

//		internal static void Connect()
//		{
//			Tenjin.getInstance("E3OTCZ3UQ1OUEWUD3W9SO8JT6REPCZ5U").Connect();
//		}

//		internal static void SetConsent(bool value)
//		{
//			if (value)
//			{
//				Tenjin.getInstance("E3OTCZ3UQ1OUEWUD3W9SO8JT6REPCZ5U").OptIn();
//			}
//			else
//			{
//				Tenjin.getInstance("E3OTCZ3UQ1OUEWUD3W9SO8JT6REPCZ5U").OptOut();
//			}
//		}
//	}
//}
